import request from '../utils/request';

export function getUserCart(data){
    return request({
        url:'/cart/getUserCart',
        method:'POST',
        data
    })
}
export function getUserShopCart(data){
    return request({
        url:'/cart/getUserShopCart',
        method:'POST',
        data
    })
}
export function addCart(data){
    return request({
        url:'/cart/addCart',
        method:'POST',
        data
    })
}

export function modifyCart(data){
    return request({
        url:'/cart/modifyCart',
        method:'POST',
        data
    })
}
export function modifyCartNum(data){
    return request({
        url:'/cart/modifyCartNum',
        method:'POST',
        data
    })
}

export function deleteFoodCart(data){
    return request({
        url:'/cart/deleteFoodCart',
        method:'POST',
        data
    })
}

export function deleteShopCart(data){
    return request({
        url:'/cart/deleteShopCart',
        method:'POST',
        data
    })
}